package cn.edu.hit.conf;

import cn.edu.hit.core.Document;
import cn.edu.hit.core.conf.ConfigureProvider;
import cn.edu.hit.kg.Neo4jConfigurationUtil;
import net.sf.json.JSONObject;

public class MainConfigureProvider implements ConfigureProvider {
    @Override
    public int priority() {
        return 0;
    }

    @Override
    public Document loadConfigure() {
        String configStr = Neo4jConfigurationUtil.loadConfigure("configure.json");
        JSONObject jsonObject = JSONObject.fromObject(configStr);
        return new Document(jsonObject);
    }
}
